import config from '@/config'
import request from '@/utils/request'


//商品分类列表-树状结构
export function shopCatListTree(params?: any) {
    return request.post({ url: '/admin.shop.shop_goods_cat/catListTree', params })
}

//积分券商品列表
export function goodsRedList(params?: any) {
    return request.get({ url: '/admin.shop.goods_red/list', params })
}
//积分券添加商品
export function addGoodKu(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/add', params })
}
//积分券编辑商品
export function editGoodKu(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/edit', params })
}

//积分券商品详情
export function detailGoodKu(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/detail', params })
}

//积分券商品删除
export function goodsRedDel(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/del', params })
}

//快捷修改
export function goodsRedEdit(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/quickEdit', params })
}

//恢复积分券商品
export function goodsRedRollbackDel(params?: any) {
    return request.post({ url: '/admin.shop.goods_red/rollbackDel', params })
}

// 获取订单分页列表
export function getOrderPageList(params: any) {
    return request.get({ url: '/admin.shop.order_red/list', params })
}

// 详情
export function detail(params: any) {
    return request.post({ url: '/admin.shop.order_red/detail', params })
}

//单据凭证支付审核
export function audit(params?: any) {
    return request.post({ url: '/admin.shop.order_red/audit', params })
}

//取消未支付的订单
export function cancel(params?: any) {
    return request.post({ url: '/admin.shop.order_red/cancel', params })
}

//一键发货(勾选版)
export function pick(params?: any) {
    return request.post({ url: '/admin.shop.order_red/pick', params })
}

//一键发货(商品编号版)
export function deliverOrder(params?: any) {
    return request.post({ url: '/admin.shop.order_red/deliver_order', params })
}

//一键签收(勾选版)
export function orderRedFor(params?: any) {
    return request.post({ url: '/admin.shop.order_red/for', params })
}

//一键签收(商品编号版)
export function orderRedForOrder(params?: any) {
    return request.post({ url: '/admin.shop.order_red/for_order', params })
}

//确认收货
export function orderConfirm(params?: any) {
    return request.post({ url: '/admin.shop.order_red/confirm', params })
}

//订单核销
export function orderSuc(params?: any) {
    return request.post({ url: '/admin.shop.order_red/suc', params })
}


//一键核销(商品编号版)
export function sucallOrder(params?: any) {
    return request.post({ url: '/admin.shop.order_red/sucall_order', params })
}


//一键核销(勾选版)
export function sucall(params?: any) {
    return request.post({ url: '/admin.shop.order_red/sucall', params })
}

//退款
export function orderRefund(params?: any) {
    return request.post({ url: '/admin.shop.order_red/refund', params })
}















